function findNumberOfLIS(nums){
    let len = nums.length
    if(len <= 1){
        return len
    }
    let maxLen = 1
    const dp = []
    dp[0] = 1
    for(let i=1; i<len;i++){
        dp[i] = 1
        for(j=0; j<i;j++){
            if(nums[i] > nums[j]){
                dp[i] = Math.max(dp[i], dp[j] + 1)
            }
        }
        maxLen = Math.max(maxLen, dp[i])
    }
   
    
}

let nums = [1,3,5,4,7]
findNumberOfLIS(nums)

